﻿using LCL.Entity;
namespace LCL.Factory
{
    public interface IDataProvider
    {
        /// <summary>
        /// 检查用户登录状态
        /// </summary>
        /// <param name="userid">用户ID</param>
        /// <param name="password">用户密码</param>
        /// <param name="IsAdministrator">是否是管理员</param>
        /// <returns>返回用户的登陆状态</returns>
        EnumLoginState CheckUser(int userid, string password,  bool IsAdministrator);
        /// <summary>
        /// 注册用户
        /// </summary>
        /// <param name="username"></param>
        /// <param name="pwd"></param>
        /// <param name="email"></param>
        /// <returns></returns>
        bool RegUser(string username, string pwd, string email);
        /// <summary>
        /// 开始登陆
        /// </summary>
        /// <param name="username">用户名</param>
        /// <param name="pwd">密码</param>
        /// <returns></returns>
        bool Login(ref string uid,string username, string pwd, bool IsAdministrator);
    }
}